﻿<UserControl x:Class="RK.Wpf3DSampleBrowser.Samples.DXProductionDemo.DXProductionDemoControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:gfx="http://www.rkoenig.eu/graphicsengine"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <DockPanel LastChildFill="True">


        <Grid>
            <gfx:Direct3D11Image Name="m_direct3DImage" 
                                 VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Stretch="Fill"
                                 UpdateOnRender="True"
                                 IsHitTestVisible="True" Focusable="True">
            </gfx:Direct3D11Image>

            <StackPanel Orientation="Horizontal"
                        DockPanel.Dock="Top"
                        Height="50"
                        VerticalAlignment="Top">
                <Button Content="Toggle Wireframe"
                    Click="OnCmdToggleWireframeClick"
                    Width="150" 
                    Margin="10"
                    Padding="5"/>
                <Button Content="Toggle Production"
                    Click="OnCmdToggleProductionClick"
                    Width="150" 
                    Margin="10"
                    Padding="5"/>
            </StackPanel>
        </Grid>
    </DockPanel>
</UserControl>
